package Course;

public class TestMain {
    public static void main(String[] args) {
    // 实例化教师
    Teacher t1 = new Teacher("T001", "陈老师", "男");
    Teacher t2 = new Teacher("T002", "李老师", "女");

    // 教师开课
    Course c1 = t1.openCourse("C001", "数据结构", "教学楼A301", "周一3-4节");
    Course c2 = t2.openCourse("C002", "Java编程", "实验楼B205", "周三5-6节");

    // 实例化学生
    Student s1 = new Student("S001", "小阳", "男");
    Student s2 = new Student("S002", "小丽", "女");

    // 学生选课
    s1.selectCourse(c1);
    s1.selectCourse(c2);
    s2.selectCourse(c1);

    // 学生退课
    s1.dropCourse(c2);

    // 打印课表
    s1.printCourseSchedule();
    s2.printCourseSchedule();
}
}
